<!-- search area   -->
<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/message/smsMessage/list" id="searchForm">
	  <div class="col-md-12">
		  <div class="row">
			    <div class="col-md-4">
			      <div class="form-group">
			         <label  class="col-md-5 control-label">${_res["smsMessage.smsTitle"]}</label>
			         <div class="col-md-7">
			            <input type="text" class="form-control" name="smsMessage.l_title" placeholder="${_res['smsMessage.title']}" value="${paramMap['smsMessage.l_title']}"/>
			         </div>
			       </div>
			    </div>
			    
			    <div class="col-md-4">
			      <div class="form-group">
			         <label  class="col-md-5 control-label">${_res["smsMessage.startDate"]}</label>
			         <div class="col-md-7">
			            <input placeholder="${_res['smsMessage.startDate']}"  class="form-control layer-date laydate-icon"  onclick="laydate()" name="smsMessage.gt_createtime"  value="${paramMap['smsMessage.gt_createtime']}">
			         </div>
			       </div>
			    </div>		
			        
			    <div class="col-md-4">
			      <div class="form-group">
			         <label  class="col-md-4 control-label">${_res["smsMessage.endDate"]}</label>
			         <div class="col-md-7">
			          	<input placeholder="${_res['smsMessage.endDate']}"   class="form-control layer-date laydate-icon" onclick="laydate()" name="smsMessage.le_createtime"  value="${paramMap['smsMessage.le_createtime']}">
			         </div>
			       </div>
			    </div>
		  </div>
		  
		  <div class="row">
	 		<div class="col-md-4">
		      <div class="form-group">
		         <label  class="col-md-5 control-label">${_res["smsMessage.sendObject"]}</label>
		         <div class="col-md-7">
		          	  <#dict type="select" name="smsMessage.f_sendobject" table="customer_role" filedName="name" filedValue="id"  value="${paramMap['smsMessage.f_sendobject']}"/>
		         </div>
		       </div>
		    </div>
		    
		    <div class="col-md-4">
		      <div class="form-group">
		         <label  class="col-md-5 control-label">${_res["smsMessage.sendStatus"]}</label>
		         <div class="col-md-7">
		          	  <#dict type="select" name="smsMessage.f_status" dictCode="SEND_STATUS"  value="${paramMap['smsMessage.f_status']}"/>
		         </div>
		       </div>
		    </div>
		     <div class="col-md-2">
			      <div class="form-group">
			        <button type="button" class="btn btn-primary pull-right" onclick="ajaxForm('content','searchForm')">
			        <i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}</button>
			      </div>
			  </div>	
		  </div>
		</div>
	</form>
</div>
<!-- search area end  -->

<div class="row searchLineWrap">
	<% if(hasPrivilegeUrl("smsAdd")){ %>
		<p><a href="javascript:void(0);" onClick="ajaxContent('/message/smsMessage/add/a');" class="btn btn-primary pull-left">${_res["smsMessage.addSms"]}</a><div class="clearfix"></div></p>
	<% } %>
	<table class="table table-bordered">
	    <thead>
	        <tr>
	            <th>${_res["smsMessage.smsTitle"]}</th>
	            <th>${_res["smsMessage.contentDescription"]}</th>
	            <th>${_res["smsMessage.sendObject"]}</th>
	            <th>${_res["smsMessage.sendStatus"]}</th>
	            <th>${_res["system.createtime"]}</th>
	            <th>${_res["smsMessage.sendTime"]}</th>
	            <th>${_res["system.operator"]}</th>
	        </tr>
	    </thead>
	    <tbody>
		    <% for(item in splitPage.list!){ %>
		      <tr >
		            <td>${item.title!}</td>
		            <td>${item.content!}</td>
		            <td><#dict type="lable"  value="${item.sendobject!}"  table="customer_role" filedName="name" filedValue="id" /></td>
		            <td><#dict type="lable" value='${item.status!}' dictCode="SEND_STATUS"/></td>
		            <td>${item.createtime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
		            <td>${item.sendtime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
		            <td>
		            	<% if(hasPrivilegeUrl("smsView")){ %>
		               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/message/smsMessage/view/${item.id!}');">${_res["system.view"]}</button>
		               	<% } %>
		               	<% if(hasPrivilegeUrl("smsEdit")){ %>
		               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/message/smsMessage/update/e-${item.id!}')">${_res["system.edit"]}</button>
		               	<% } %>
		               	<% if(hasPrivilegeUrl("smsDelete")){ %>
		               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxDelete('/message/smsMessage/delete/${item.id!}')">${_res["system.delete"]}</button>
		            	<% } %>
		            </td>
		      </tr>
		     <% } %>
	    </tbody>
	</table>
	
	<div id="splitPageDiv">
		<#page formId="searchForm"  />
	</div>
	<#nav />
</div>